import request from '@/utils/request'

// 查询比武竞赛情况列表
export function listTournament(query) {
  return request({
    url: '/tournament/tournament/list',
    method: 'get',
    params: query
  })
}

// 查询比武竞赛情况详细
export function getTournament(id) {
  return request({
    url: '/tournament/tournament/' + id,
    method: 'get'
  })
}

// 新增比武竞赛情况
export function addTournament(data) {
  return request({
    url: '/tournament/tournament',
    method: 'post',
    data: data
  })
}

// 修改比武竞赛情况
export function updateTournament(data) {
  return request({
    url: '/add/add/update1',
    method: 'put',
    data: data
  })
}

// 删除比武竞赛情况
export function delTournament(id) {
  return request({
    url: '/tournament/tournament/' + id,
    method: 'delete'
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}
// 批量添加
export function addMartialList(data) {
  return request({
    url: '/add/add/martial',
    method: 'post',
    data: data
  })
}
